package com.bgq365.study.springboot2.boot02web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bgq365.study.springboot2.boot02web.dao.UserMapper;
import com.bgq365.study.springboot2.boot02web.service.UserService;
import com.bgq365.study.springboot2.entities.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {



    /*
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Long id) {
        return userMapper.selectById(id);
    }

    @Override
    public User save(User user) {
        user.setCreateTime(new Date());
        userMapper.insert(user);
        return user;
    }
*/
}
